package anc.server.tankshooter.models;


public class Match extends DbEntity {

	public final static int STATUS_OPEN=0;
	public final static int STATUS_PLAYING=1;
	public final static int STATUS_ENDED=2;
	
	private int mMatchId;
	private int mOwnerId;
	private int mCompetitorId;
	private int mWinnerId;
	private int mMapId;
	private int mStartTime;
	private int mEndTime;
	private int mStatus;
	
	
	
	@Override
	public void resetFields() {
		mWinnerId = -1;
		mMapId=1;
		setStatus(STATUS_OPEN);
	}

	public int getMatchId() {
		return mMatchId;
	}

	public void setMatchId(int matchId) {
		this.mMatchId = matchId;
	}

	public int getOwnerId() {
		return mOwnerId;
	}

	public void setOwnerId(int ownerId) {
		this.mOwnerId = ownerId;
	}

	public int getStartTime() {
		return mStartTime;
	}

	public void setStartTime(int startTime) {
		this.mStartTime = startTime;
	}

	public int getEndTime() {
		return mEndTime;
	}

	public void setEndTime(int endTime) {
		this.mEndTime = endTime;
	}

	public int getStatus() {
		return mStatus;
	}

	public void setStatus(int status) {
		this.mStatus = status;
	}

	public int getMapId() {
		return mMapId;
	}

	public void setMapId(int mapid) {
		this.mMapId = mapid;
	}

	public int getCompetitorId() {
		return mCompetitorId;
	}

	public void setCompetitorId(int mCompetitorId) {
		this.mCompetitorId = mCompetitorId;
	}

	public int getWinnerId() {
		return mWinnerId;
	}

	public void setWinnerId(int mWinnerId) {
		this.mWinnerId = mWinnerId;
	}

}
